﻿using MiniFox.Resources;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using MiniFox.Platform.Applications.Models;

namespace Sys.Core.Models.VO
{
    /// <summary>
    /// 
    /// </summary>
    [Table("MenuLink")]
    public class MenuLinkVo
    {
        /// <summary>
        /// 链接ID
        /// </summary>
        [Column("linkId")]
        [JsonProperty("linkId")]
        public string LinkID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column("linkName")]
        [JsonProperty("linkName")]
        public string LinkName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column("linkUri")]
        [JsonProperty("linkUri")]
        public string LinkUri { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column("label")]
        [JsonProperty("label")]
        public string Label { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        [Column("icon")]
        [JsonProperty("icon")]
        public string Icon { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Column("openMode")]
        [JsonProperty("openMode"), JsonConverter(typeof(StringEnumConverter))]
        public OpenMode OpenMode { get; set; }
        /// <summary>
        /// 排序值
        /// </summary>
        [Column("ordinal")]
        [JsonProperty("ordinal")]
        public int? Ordinal { get; set; }
    }
}
